import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import {
  Button,
  Search,
  Card,
  Icon,
  Tabbar,
  TabbarItem,
  NavBar,
  Form,
  Field,
  CellGroup,
  Uploader,
  Picker,
  Popup,
  Cell,
  Swipe,
  SwipeItem,
  Tabs,
  Tab,
  Empty,
  Tag,
  Image,
  DatePicker,
  TreeSelect,
  Checkbox,
  CheckboxGroup,
  RadioGroup,
  Radio
} from 'vant'
import 'vant/lib/index.css'
var app = createApp(App)
app.use(router)


// 使用
// 注册Vant组件
app.use(Button)
  .use(Search)
  .use(Card)
  .use(Icon)
  .use(Tabbar)
  .use(TabbarItem)
  .use(NavBar)
  .use(Form)
  .use(Field)
  .use(CellGroup)
  .use(Uploader)
  .use(Picker)
  .use(Popup)
  .use(Cell)
  .use(Swipe)
  .use(SwipeItem)
  .use(Tabs)
  .use(Tab)
  .use(Empty)
  .use(Tag)
  .use(Image)
  .use(DatePicker)
  .use(TreeSelect)
  .use(Checkbox)
  .use(CheckboxGroup)
 .use(RadioGroup)
 .use(Radio)

app.mount('#app')